package com.cyt.sys.service;

import com.cyt.base.model.dto.ReturnResult;

import com.cyt.sys.model.po.SysUserRole;
import com.cyt.sys.model.vo.SysUserRoleVo;

import java.util.List;

/**
 * @param
 * @author changzheng hou
 * @return
 * @date 2019/4/2 15:28
 */
public interface SysUserRoleService extends BaseService<SysUserRole> {


    /**
     * 保存或更新
     *
     * @param  sysUserRoleVo
     * @author changZheng hou
     * @date 2019/4/2 16:19
     */
    void addOrUpdate(SysUserRoleVo sysUserRoleVo);

    /**
     * 增加或修改角色的用户
     *
     * @return ReturnResult
     * @author changZheng hou
     * @date 2019/4/8 16:50
     */
    ReturnResult UpdateUser(String roleId, String ruleIds);

    /**
     * 查询对象集合
     *
     * @param sysUserRoleVo 对象
     * @return
     * @author shengQiang yu
     * @date 2019-04-23 17:04
     */
    List<SysUserRole> listExample(SysUserRoleVo sysUserRoleVo);
}
